package com.bsj.pay.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bsj.pay.dao.BalanceDao;
import com.bsj.pay.model.BalanceBean;
import com.bsj.pay.service.BalanceService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;

@Service
public class BalanceServiceImpl implements BalanceService{
	@Autowired
	private BalanceDao dao;
	
	@Override
	public long insert(BalanceBean t) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteById(Long id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int removeById(Long id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int update(BalanceBean t) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public BalanceBean getById(Long Id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<BalanceBean> queryList(BalanceBean t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<BalanceBean> queryAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public long count(BalanceBean t) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public PageInfo<BalanceBean> pageList(BalanceBean t, int pageNum, int pageSize) {
		// TODO Auto-generated method stub
		PageHelper.startPage(pageNum, pageSize);
		List<BalanceBean> list = dao.queryList(t);
		PageInfo<BalanceBean> pageInfo= new PageInfo<BalanceBean>(list);
		return pageInfo;
	}
	
	 
}
